<template>
	<view class="page">
		<view class="cover"></view>
		<view class="content">
			<view class="search-wrap">
				<view class="search">
					<image src="/static/img/search.png"></image>
					<input type="" placeholder="商品名称/关键词"  placeholder-style="margin-left: 80rpx;" />
					<view class="line"></view>
				</view>
				<text class="search-btn">搜索</text>
			</view>
			<view class="goods-list">
				<view class="goods-list-item" v-for="(item,index) in goodsInfo" :key="index">
					<image src="/static/img/goods.png"></image>
					<text class="goods-name">{{item.goodsName}}</text>
					<text class="tag-one tag">{{item.goodsTagOne}}</text>
					<text class="tag-two tag">{{item.goodsTagTwo}}</text>
					<text class="price">¥{{item.goodsPrice}}</text>
					<text class="high-price">原价：{{item.highPrice}}</text>
					<text class="sell-count">销量：{{item.sellCount}}件</text>
					<text></text>
				</view>
				<text class="more">点击查看更多商品</text>
			</view>
		</view>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				goodsInfo: [
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					},
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					},
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					},
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					},
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					},
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					},
					{
						goodsName: '李宁秋季卫衣',
						goodsTagOne: '秋季新品',
						goodsTagTwo: '运动卫衣',
						goodsPrice: '188.00~298.00',
						highPrice: '258.00',
						sellCount: 1283
					}
				]
			}
		}
	}
</script>

<style>
	.page {
		width: 100%;
		height: 100%;
	}
	.cover {
		position: fixed;
		z-index: 100;
		top: 0;
		width: 750rpx;
		height: 120rpx;
		background: #fff;
	}
	.content {
		width: 750rpx;
		margin-top: 120rpx;
	}
	.search-wrap {
		position: fixed;
		z-index: 100;
		width: 750rpx;
		height: 72rpx;
		background: #fff;
	}
	.search {
		position: relative;
		width: 595rpx;
		height: 72rpx;
		line-height: 72rpx;
		margin-left: 30rpx;
		background: rgba(255,255,255,1);
		box-shadow: 0rpx -2rpx 18rpx 0rpx rgba(219,219,219,0.52);
		border-radius:10rpx 10rpx 0rpx 0rpx;
	}
	.search input {
		width: 100%;
		height: 100%;
		padding-left: 20rpx;
	}
	.line {
		width: 592rpx;
		height: 10rpx;
		border: 1rpx solid rgba(254,177,71,1);
		border-top: none;
		background: #fff;
	}
	.search image {
		position: absolute;
		left: 20rpx;
		top: 23rpx;
		width: 32rpx;
		height: 32rpx;
	}
	.search-btn {
		position: absolute;
		top: 18rpx;
		right: 29rpx;
		height: 34rpx;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(254,177,71,1);
		line-height: 40rpx;
	}
	.goods-list {
		position: absolute;
		top: 200rpx;
		margin-left: 35rpx;
		margin-top: 50rpx;
		width: 710rpx;
		margin-left: 20rpx;
		background: #fff;
	}
	.goods-list-item {
		position: relative;
		width: 670rpx;
		height: 200rpx;
		margin-left: 20rpx;
		overflow: hidden;
		margin-bottom: 20rpx;
		background: rgba(255,255,255,1);
		box-shadow:0rpx -4rpx 8rpx 0rpx rgba(250,250,250,0.95), 0px 4px 8px 0px rgba(204,204,204,1);
		border-radius: 10rpx;
	}
	.goods-list-item image {
		display: block;
		width: 160rpx;
		height: 160rpx;
		margin-left: 20rpx;
		margin-top: 20rpx;
	}
	.goods-name {
		display: block;
		position: absolute;
		top: 27rpx;
		left: 210rpx;
		height: 31rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: rgba(51,51,51,1);
	}
	.tag {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 108rpx;
		height: 28rpx;
		background: rgba(222,245,255,1);
		border: 1rpx solid rgba(185,233,255,1);
		border-radius: 8rpx;
		font-size: 22rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(72,180,231,1);
	}
	.tag-one {
		position: absolute;
		top: 77rpx;
		left: 210rpx;
	}
	.tag-two {
		position: absolute;
		top: 77rpx;
		left: 332rpx;
	}
	.price {
		position: absolute;
		top: 117rpx;
		left: 212rpx;
		width: 233rpx;
		height: 23rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight:500;
		color:rgba(254,177,71,1);
	}
	.high-price {
		position: absolute;
		top: 155rpx;
		left: 210rpx;
		height: 21rpx;
		font-size: 22rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(153,153,153,1);
		text-decoration: line-through;
	}
	.sell-count {
		position: absolute;
		top: 155rpx;
		right: 50rpx;
		height: 23rpx;
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(102,102,102,1);
	}
	.more {
		width: 221rpx;
		height: 27rpx;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(254,177,71,1);
		line-height: 192rpx;
		margin-left: 245rpx;
	}
</style>
